<?php
namespace app\admin\validate;
use think\Validate;

class Cate extends Validate
{
    protected $rule = [
      'cate_name'  => ['require','unique:cate,cate_name'],
      
    ];
    protected $message = [
        'cate_name.require' => '名称必须',
        'cate_name.unique'  =>'名称必须唯一'
      ];
}